import axios from '~/axios'

// 添加镇街支付明细
export function addSubsidyApplicationTownPaymentApi(data) {
    return axios.post('/basic/lindi/subsidyApplicationTownPayment/addSubsidyApplicationTownPayment', data)
}

// 删除镇街支付明细
export function deleteSubsidyApplicationTownPaymentBySubsidyApplicationTownPaymentIdApi(subsidyApplicationTownPaymentId) {
    return axios({
        method: 'DELETE',
        url: '/basic/lindi/subsidyApplicationTownPayment/deleteSubsidyApplicationTownPaymentBySubsidyApplicationTownPaymentId',
        params: {
            subsidyApplicationTownPaymentId: subsidyApplicationTownPaymentId
        }
    })
}

// 修改镇街支付明细
export function updateSubsidyApplicationTownPaymentBySubsidyApplicationTownPaymentIdApi(data) {
    return axios.put('/basic/lindi/subsidyApplicationTownPayment/updateSubsidyApplicationTownPaymentBySubsidyApplicationTownPaymentId', data)
}

// 根据镇街支付明细ID查询镇街支付明细
export function getSubsidyApplicationTownPaymentBySubsidyApplicationTownPaymentIdApi(subsidyApplicationTownPaymentId) {
    return axios.get(`/basic/lindi/subsidyApplicationTownPayment/getSubsidyApplicationTownPaymentBySubsidyApplicationTownPaymentId/${subsidyApplicationTownPaymentId}`)
}

// 根据支付通知ID查询镇街支付明细列表
export function getSubsidyApplicationTownPaymentListBySubsidyApplicationPayNoticeIdApi(subsidyApplicationPayNoticeId) {
    return axios.get(`/basic/lindi/subsidyApplicationTownPayment/getSubsidyApplicationTownPaymentListBySubsidyApplicationPayNoticeId/${subsidyApplicationPayNoticeId}`)
}